<!-- To display "Buy" tab -->
<% content_for :top do %>
<br />
<span style="font-weight:bold;font-size:16px;padding-left:12px;">Use WinPoints <%=image_tag"winpoint.png"%> to buy free Wins</span><br/><br/>

<center>
<table class="lister" style="width:75%"> 
	<thead style="text-align:center;">
	    <td>Description</td>
	    <td>Cost (WinPoints)</td>
	    <td></td>
	</thead>
	<tbody>
		<tr>
			<td style="text-align:left;">&nbsp;&nbsp;Free&nbsp;&nbsp;<span style="display:inline-block; vertical-align:middle">
				<%=image_tag"win.png"%></span>&nbsp;&nbsp;for current streak
			</td>
			<td>
				<%=PointConfig.find_by_name_and_level("free",@level).point if PointConfig.find_by_name_and_level("free",@level)%>
			</td>
			<td>
				<%=link_to "Buy",free_buy_wins_path + "?level=" + @level.to_s,:class=>"buy-wins",:style=>"font-weight:bold;background:url(#{facebook_image_url('orange_header.gif')}) repeat-x;",:confirm=>'Are you sure?'%>
			</td>
		</tr>	
		<tr>
			<td style="text-align:left;">&nbsp;&nbsp;Two free&nbsp;&nbsp;<span style="display:inline-block; vertical-align:middle"><%=image_tag"win.png"%></span>&nbsp;&nbsp;at the beginning of next streak</td><td>500</td><td>
				<%if current_user.bought_win?%>
				   <%=image_tag"sold.gif"%>
				<%else%>
				   <%=link_to "Buy",only_buy_wins_path,:class=>"buy-wins",:style=>"font-weight:bold;background:url(#{facebook_image_url('orange_header.gif')}) repeat-x;",:confirm=>'Are you sure?'%>
				<%end%>
			</td>
		</tr>
	</tbody>
</table>
</center>


<br/><center><hr width="25%" size="0.5px" color="#a7a7a7"></center><br/><br/>
<span style="font-weight:bold;font-size:16px;padding-left:12px;">Use WinPoints <%=image_tag"winpoint.png"%> to buy Achievements</span><br/><br/>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Coming Soon!

<%end%>